<?php
require_once 'conf.php';
require_once('bootstrap.php');

$conn = Doctrine_Manager::connection('mysql://jboz_admin:9map174tir@localhost/jboz_picasa');
$pathToModel = dirname(__FILE__).'/src/net/crashtoot/php/picasa/model/';

$dbName = "jboz_picasa";

Doctrine_Core::dropDatabases($dbName);
Doctrine_Core::createDatabases($dbName);                                
Doctrine_Core::generateYamlFromModels('schema.yml', $pathToModel);
Doctrine_Core::createTablesFromModels($pathToModel);
?>